#include <iostream>
#include "tabbporo.h"

using namespace std;

int
main(void)
{
  //Comprobar borrar hoja
  
  TABBPoro a,b,c;
  TPoro c7(1,2,7,"rojo");
  TPoro c4(1,2,4,"rojo");
  TPoro c10(1,2,10,"rojo");
  TPoro c2(1,2,2,"rojo");
  TPoro c5(1,2,5,"rojo");
  TPoro c8(1,2,8,"rojo");
  TPoro c9(1,2,9,"rojo");
  TPoro c3(1,2,3,"rojo");
  TPoro c1(1,2,1,"rojo");
  TPoro c12(1,2,12,"rojo");
  TPoro c6(1,2,6,"rojo");
    
  a.Insertar(c7);
  a.Insertar(c4);
  a.Insertar(c10);
  a.Insertar(c2);
  a.Insertar(c5);
  a.Insertar(c8);
  a.Insertar(c9);
  
  b.Insertar(c4);
  b.Insertar(c1);
  b.Insertar(c6);
  b.Insertar(c12);
  b.Insertar(c3);
  c=b;

  cout<<"Preorden="<<b.Preorden()<<endl;
  cout<<"Preorden="<<c.Preorden()<<endl;
  
  c=a+b;
  
  cout<<"Preorden="<<c.Preorden()<<endl;
  cout<<"Preorden="<<b.Preorden()<<endl;
  cout<<"Preorden="<<a.Preorden()<<endl;
  
  return 0;
}
